package com.xjscrm.common.utils;

public class OrderByUtil {

    public static String getOrderBy(String orderByField,boolean isAsc){
        String sort=null;
        if(isAsc){
            sort="asc";
        }else {
            sort="desc";
        }
        if(orderByField==null){
            orderByField="create_time";
        }
        String orderBy=orderByField+" "+sort;
        return  orderBy;
    }
}
